All Functions of Week 4

read.csv

{utils}

Read a csv file to data frame. Specify stringsAsFactors = FALSE to keep all string columns as characters

max

{base}

Get maximum of a vector

setwd

{base}

Set Working Directory

library

{base}

Load an R package

quantile

{stats}

Obtain empirical quantiles of a vector

is.na

{base}

Check if a value is NA/elements of vector are NA

glm

{base}

Fits generalized linear models

c

{base}

Combine values/vectors into a vector

seq

{base}

Create a sequence

binomial

{base}

Family argument in glm()

complete.cases

{stats}

Find Complete Cases

summary

{base}

Obtain summary statistics or detailed regression output

factor

{base}

Create a factor

rm

{base}

Remove objects

min

{base}

Get minimum of a vector

ls

{base}

Return a vector of character strings giving the names of the objects in the specified environment

predict

{stats}

Predict Probability

log

{base}

log (default base = e)

nobs

{gdata}

Compute the number of non-missing observations

The end!